* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	background-color: #f5f5f5;
	color: #333;
	height: 100vh;
}

/* 新增医院官网特定样式 */
.hospital-header {
	background-color: white;
	padding: 15px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hospital-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.header-rg {
	width: 390px;
	height: 75px;
	margin-top: 15px;
	float: left;
}

.hospital-search {
	padding-top: 20px;
	height: 40px;
	display: flex;
	/* 启用 Flex 布局 */
	align-items: center;
	/* 垂直居中对齐 */
	gap: 5px;
	/* 设置间距（可选） */
}

.hospital-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.hospital-logo {
	display: flex;
	align-items: center;
}

.hospital-logo img {
	height: 83px;
	margin-right: 15px;
}

.hospital-title {
	color: #2c8a3e;
	font-size: 24px;
	font-weight: bold;
}

.hospital-subtitle {
	font-size: 16px;
	color: #555;
}

.hospital-nav {
	background-color: #2c8a3e;
	border-radius: 4px;
}

.nav-menu {
	display: flex;
	list-style: none;
}

.nav-menu li {
	position: relative;
}

.nav-menu li:hover .sub-menu {
	display: block;
}

.nav-menu a {
	color: white;
	text-decoration: none;
	padding: 12px 20px;
	display: block;
	font-size: 16px;
	transition: background-color 0.3s;
}

.nav-menu a:hover {
	background-color: #247532;
}

.sub-menu {
	display: none;
	position: absolute;
	background-color: white;
	min-width: 200px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
	z-index: 100;
	border-radius: 0 0 4px 4px;
}

.sub-menu a {
	color: #333;
	border-bottom: 1px solid #eee;
}

.sub-menu a:hover {
	background-color: #f5f5f5;
	color: #2c8a3e;
}

/* 主要内容区 */
.hospital-main {
	padding: 30px 0;
}

.content-row {
	display: flex;
	margin-bottom: 30px;
	gap: 30px;
}

.main-content {
	flex: 2;
}

.side-content {
	flex: 1;
	width: 380px;
}

.content-card {
	background-color: white;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	margin-bottom: 20px;
}

.card-title {
	color: #2c8a3e;
	font-size: 18px;
	font-weight: bold;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-title a {
	font-size: 14px;
	font-weight: normal;
	color: #666;
	text-decoration: none;
}

.card-title a:hover {
	color: #2c8a3e;
}

/* 新闻列表 */
.news-list {
	list-style: none;
}

.news-item {
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
}

/* 轮播容器 */
.news-carousel {
	display: flex;
	gap: 20px;
	height: 100%;
}

/* 左侧大图区域 */
.main-slide {
    flex: 2;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-slide img {
    width: 342px;
    height: 239.5px;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-slide:hover img {
    transform: scale(1.03);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 3px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.pagination {
    font-size: 13px;
}

.title-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.slide-title {
    margin: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    flex: 1;
    padding-right: 15px;
    max-width: calc(100% - 110px); /* 根据实际需要调整 */
	padding-bottom: 3px;
	padding-left: 5px;
}

.pagination-dots {
	padding-right: 5px;
    display: flex;
}

.pagination-dots .dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.pagination-dots .dot:hover,
.pagination-dots .dot.active {
    background-color: #007bff;
}

/* 右侧小图列表 */
.thumbnail-list {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 30px;
    overflow: hidden; /* 防止图片溢出 */
}

.thumbnail-list img {
    width: 120%;
    height: auto;
    transform: translateX(-10%); 
    transition: all 0.3s ease;
}


.news-date {
	color: #888;
	font-size: 12px;
	margin-top: 5px;
}

.news-item:last-child {
	border-bottom: none;
}

.news-item a {
	display: flex;
	justify-content: space-between;
	text-decoration: none;
	color: #333;
}

.news-item a:hover {
	color: #2c8a3e;
}

.news-date {
	color: #999;
	font-size: 14px;
}

/* 快速链接 */
.quick-links {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.quick-link {
	background-color: #f9f9f9;
	border-radius: 4px;
	padding: 15px;
	text-align: center;
	transition: all 0.3s;
}

.quick-link:hover {
	background-color: #2c8a3e;
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-link:hover a {
	color: white;
}

.quick-link a {
	text-decoration: none;
	color: #333;
	display: block;
}

.quick-link i {
	font-size: 24px;
	margin-bottom: 10px;
	display: block;
}

/* 专家轮播容器 */
.expert-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* 专家列表 - 保持原有flex布局 */
.expert-list {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
	white-space: nowrap;
    padding-bottom: 10px;
    gap: 15px; /* 使用gap替代margin-right */
}

/* 专家卡片 - 固定尺寸 */
.expert-card {
    flex: 0 0 calc(33.333% - 10px);
    min-width: calc(33.333% - 10px);
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

/* 修复图片尺寸问题 */
.expert-card > div:first-child {
    height: 180px; /* 固定图片容器高度 */
    overflow: hidden; /* 防止图片溢出 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-card img {
    width: auto; /* 取消100%宽度 */
    height: 100%; /* 保持高度填充 */
    object-fit: cover; /* 保持图片比例 */
}

/* 专家信息区域保持不变 */
.expert-info {
    padding: 15px;
    text-align: center;
}

.expert-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.expert-title {
    color: #2c8a3e;
    font-size: 14px;
    margin-bottom: 10px;
}

.expert-department {
    color: #666;
    font-size: 13px;
}

/* 悬停效果 */
.expert-card:hover {
    transform: translateY(-5px);
}

/* 页脚 */
.hospital-footer {
	background: url("https://www.qdslyy.cn/images/bottom-bg.jpg");
	color: #fff;
	text-align: center;
	padding: 30px 0;
	font-size: 14px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
}

.footer-links {
	display: flex;
	gap: 30px;
}

.footer-column h3 {
	color: white;
	font-size: 16px;
	margin-bottom: 15px;
}

.footer-column ul {
	list-style: none;
}

.footer-column li {
	margin-bottom: 8px;
}

.footer-column a {
	color: #aaa;
	text-decoration: none;
}

.footer-column a:hover {
	color: white;
}

.copyright {
	text-align: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 992px) {
	.content-row {
		flex-direction: column;
	}

	.expert-card {
		width: calc(50% - 10px);
	}
}

@media (max-width: 768px) {
	.hospital-topbar {
		flex-direction: column;
		text-align: center;
	}

	.hospital-logo {
		margin-bottom: 15px;
		justify-content: center;
	}

	.nav-menu {
		flex-wrap: wrap;
		justify-content: center;
	}

	.quick-links {
		grid-template-columns: 1fr;
	}

	.expert-card {
		width: 100%;
	}

	.footer-content {
		flex-direction: column;
		gap: 30px;
	}

	.footer-links {
		flex-wrap: wrap;
	}
}